local qunxian3__baishoukaiduo_huolongdaju = fk.CreateSkill {

  name = "qunxian3__baishoukaiduo_huolongdaju",

  tags = { Skill.Limited, },

}

Fk:loadTranslationTable {
  ["qunxian3__baishoukaiduo_huolongdaju"] = "火龙大炬",
  [":qunxian3__baishoukaiduo_huolongdaju"] = [[限定技，结束阶段，若你本局游戏以任意方式发动过两次觉醒技，你可以选择任意名角色对这些角色各造成10点火焰伤害。"]],
  ["#qunxian3__baishoukaiduo_huolongdaju-choose_players"] = "火龙大炬：选择任意名角色对这些角色各造成10点火焰伤害",
  ["$qunxian3__baishoukaiduo_huolongdaju"] = "火龙大炬",
}

qunxian3__baishoukaiduo_huolongdaju:addEffect(fk.EventPhaseStart, {
  anim_type = "big",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(qunxian3__baishoukaiduo_huolongdaju.name)
        and player.phase == Player.Finish and
        player:usedSkillTimes("qunxian3__baishoukaiduo_huolongdaju", Player.HistoryGame) == 0
  end,
  on_cost = function(self, event, target, player, data)
    local room = player.room
    local num = #room.logic:getEventsByRule(GameEvent.SkillEffect, 2, function(e)
      return e.data.skill:hasTag(Skill.Wake) and e.data.who == player
    end, Player.HistoryGame)
    return num >= 2 and room:askToSkillInvoke(player, { skill_name = "qunxian3__baishoukaiduo_huolongdaju" })
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local targets = room:askToChoosePlayers(player, {
      targets = room.alive_players,
      skill_name = "qunxian3__baishoukaiduo_huolongdaju",
      prompt = "#qunxian3__baishoukaiduo_huolongdaju-choose_players",
      min_num = 1,
      max_num = #room.alive_players
    })
    for _, p in ipairs(targets) do
      room:damage({
        from = player,
        to = p,
        skillName = "qunxian3__baishoukaiduo_huolongdaju",
        damage = 10,
        damageType = fk.FireDamage
      })
    end
  end
})




return qunxian3__baishoukaiduo_huolongdaju
